package com.example.yoho.mvp.model;

import com.example.lib_core.mvp.model.BaseModel;
import com.example.lib_core.network.RetrofitManager;
import com.example.yoho.mvp.contract.ShoesTrandContract;
import com.example.yoho.mvp.model.entity.CouponlistEntity;
import com.example.yoho.mvp.model.entity.ShoesBean;

import javax.inject.Inject;

import io.reactivex.Observable;

public class ShoesTrandModel extends BaseModel implements ShoesTrandContract.Model {

    @Inject
    public ShoesTrandModel() {
    }

    @Override
    public Observable<ShoesBean> shoesTrandModel(String request) {
        return RetrofitManager.getInstance().getRetrofit().create(AppApi.class).shoesRequest(request);
    }

    @Override
    public Observable<CouponlistEntity> couponlistModel(String request) {
        return RetrofitManager.getInstance().getRetrofit().create(AppApi.class).couponRequest(request);
    }
}
